package com.cqjtu.drive.mapper;

import com.cqjtu.drive.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author zxl
 * @Date 2024/6/6 12:41
 */
@Mapper
@Repository
public interface UserMapper {

    User getUserByAccount(String userAccount);


    void insertUser(User user);


    void updateUser(User user);


    void deleteUser(String userId);

    void deleteUserCascade(String userId);


    List<User> getAllUsers();
}

